<?php

include_once '../info_struct.php';
include_once 'process_data.php';
include_once '../ZMath_API/zmath_api.php';

$ref = new infos();
$ref->title = "On Computable Numbers, with an Application to the Entscheidungsproblem";
$ref->year = "1937";
$ref->author = "Alan Turing";

$ref_doi = new infos();
$ref_doi->doi = "10.1112/plms/s2-42.1.230";

$ref_zmath = new infos();
$ref_zmath->zmath = "1065.42014";

$ref_arxiv = new infos();
$ref_arxiv->arxiv = "1207.7184";

$res = process_manual_data($ref);
$res_doi = process_doi($ref_doi);
$res_zmath = process_zmath($ref_zmath);
$res_arxiv = process_arxiv($ref_arxiv);

echo "Manual Data: " . count($res) . "<br>";
var_dump($res);
echo "<br>";
echo "DOI: " . count($res_doi) . "<br>";
var_dump($res_doi);
echo "<br>";
echo "ZMath: " . count($res_zmath) . "<br>";
var_dump($res_zmath);
echo "<br>";
echo "ArXiv: " . count($res_arxiv) . "<br>";
var_dump($res_arxiv);
